//
//  YJWNewViewController.m
//  百思不得骑姐
//
//  Created by YJW on 16/10/10.
//  Copyright © 2016年 yijiang. All rights reserved.
//

#import "YJWNewViewController.h"

@interface YJWNewViewController ()

@end

@implementation YJWNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
    
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImg:@"nav_coin_icon" highlightedImg:@"nav_coin_icon_click" target:self action:@selector(newClick)];
    
    self.view.backgroundColor = YJWBgColor;
    YJWFUNC;
}

-(void)newClick{
    YJWLog(@"%s",__func__);
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    UIViewController *vc = [[UIViewController alloc] init];
    vc.view.backgroundColor = [UIColor blueColor];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
